package com.link.base.base.common.dao.mybatis.mapper;

import com.link.base.base.common.model.UserProtocol;
/**
 * Copyright  hande Company. All Rights Reserved.
 *
 * @author  unknwon
 * @date:   2018/11/9 11:27
 * @version 1.0
 */

public interface UserProtocolMapper {
    /**
     * 通过登录名查询用户是否接受协议，将查询结果封装在Bean里面
     * @param loginName
     * @return
     * @throws Exception
     */
    public UserProtocol queryProtocolStatusByLoginName(String loginName) throws Exception;

    /**
     * 向用户协议表插入数据，不拼接用户信息
     * @param record
     * @throws Exception
     */
    public void insertUserProtocol(UserProtocol record) throws Exception;

    /**
     * 用户协议插入
     * @param record
     * @throws Exception
     */
    public void userProtocolInsert(UserProtocol record) throws Exception;

    /**
     * 查询用户名是否存在，存在返回UserProtocl对象并并把用户名存进去;
     * @param loginName
     * @return
     * @throws Exception
     */
    public UserProtocol queryUserNameExist(String loginName) throws Exception;

}
